<template functional>
  <div :ref="'count'+props.count">
    这是递归：层级{{props.count}}
    <Recursion
      v-if="props.count < props.flood"
      :flood="props.flood"
      :count="props.count+1"
    ></Recursion>
  </div>
</template>

<script lang="ts">
// @ts-nocheck
export default {
  name: 'Recursion',
  props: {
    count: {
      type: Number,
      default: 3
    },
    flood:{
      type:Number,
      default: 3
    }
  }
}
</script>

<style scoped lang="scss">

</style>
